// package-store/pages/store-setting-intro/index.js
import { ManageTargetInfoUpdateMixins, ManageTargetInfoEditMixins } from '../../../behaviors/page';

Page({
    mixins: [ManageTargetInfoUpdateMixins, ManageTargetInfoEditMixins],
    data: {
        value: '',
    },
    onLoad(options) {
        this.setData({
            value: this.data.manageTargetInfo.intro,
        });
    },
    handleChange(e) {
        const { value } = e.detail;
        this.setData({
            value,
        });
    },
    async handleSave(e) {
        const { value } = this.data;
        await this.manageTargetInfoUpdateAction({
            intro: value,
        });
    },
})
